﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chain_Responsibility
{
    public abstract class PurchaseHandler
    {
        protected PurchaseHandler successor;

        public void SetSuccessor(PurchaseHandler successor)
        {
            this.successor = successor;
        }

        public abstract void HandleRequest(int request);
    }
}
